<?php

class Application_Form_Login extends Zend_Form
{

    public function init()
    {
        $this->setAction('/auth/login');
        $this->setMethod('post');

        $name = new Zend_Form_Element_Text('name');
        $name->setRequired(true);
        $name->addValidator('NotEmpty', true);
        $this->addElement($name);

        $password = new Zend_Form_Element_Password('password');
        $password->setRequired(true);
	$password->addValidator('NotEmpty', true);
        $this->addElement($password);

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Se connecter');
        $this->addElement($submit);
    }


}

